<html>
<head><meta charset="utf-8"><title>Cross Compilation missing libstd for target · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Cross.20Compilation.20missing.20libstd.20for.20target.html">Cross Compilation missing libstd for target</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="239926422"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Cross%20Compilation%20missing%20libstd%20for%20target/near/239926422" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> jam1garner <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Cross.20Compilation.20missing.20libstd.20for.20target.html#239926422">(May 23 2021 at 05:45)</a>:</h4>
<p>I'm cross compiling rustc (i.e. making a Windows build of rustc from a Linux machine) and want to include stage2 std for another target, however no matter what I try with x.py/config.toml I can't seem to get it to include a stage2 <code>lib/rustlib</code> folder for any target but Windows.</p>
<p>I'm using ~this command</p>
<div class="codehilite"><pre><span></span><code>python3 x.py build --stage 2 \
    --host x86_64-pc-windows-gnu \
    --target [my custom target] \
    --target x86_64-unknown-linux-gnu \
    --target x86_64-pc-windows-gnu \
    library/std src/tools/cargo src/tools/clippy src/tools/rustdoc
</code></pre></div>
<p>the following command works as expected when not cross compiling, however. If anyone has any ideas I'm all ears, thanks.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>